'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index(ctx) {
    await ctx.render('index');
  }


  
  async e500(ctx){
    console.log(ctx.error);
    await ctx.render('500',ctx.error);
  }
  async e404(ctx){
    await ctx.render('404',ctx.error);
  }
}

module.exports = HomeController;
